package com.xxx.feign;

import com.xxx.dto.UpdateOrderStateDto;
import com.xxx.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.validation.Valid;

@FeignClient(name = "service-order")
public interface OrderFeignApi {
    @RequestMapping(value = "/courseOrder/updateOrderState", method = RequestMethod.POST)
    public JSONResult updateOrderState(@RequestBody @Valid UpdateOrderStateDto updateOrderStateDto);


}
